﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.Base
{
    /// <summary>
    /// Base_Device
    /// </summary>
    [Table("Base_Device")]
    public partial class Base_Device
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 设备类型
        /// </summary>
        public String Type { get; set; }

        /// <summary>
        /// 设备编号
        /// </summary>
        public String Code { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        public String Name { get; set; }


        /// <summary>
        /// 组织ID
        /// </summary>
        public String DeptId { get; set; }

        /// <summary>
        /// 车间ID   存放位置
        /// </summary>
        public String WorkShopId { get; set; }
        /// <summary>
        /// 工序ID
        /// </summary>
        public String ProcecureSubId { get; set; }

        /// <summary>
        /// Mac地址
        /// </summary>
        public String Mac { get; set; }
        /// <summary>
        /// 二维码
        /// </summary>
        public String QrCode { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Remarks { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean Deleted { get; set; }

        /////设备追加列
        /// <summary>
        /// 设备规格
        /// </summary>
        public string Spec { get; set; }
        /// <summary>
        /// 设备状态 (0 正常  1关闭)
        /// </summary>
        public Boolean? State { get; set; }
        /// <summary>
        /// 设备存放位置
        /// </summary>
        public string Position { get; set; }
        /// <summary>
        /// 部门id
        /// </summary>
        public string DepartmentId { get; set; }
        /// <summary>
        /// 负责人id
        /// </summary>
        public string PersonId { get; set; }

    }

}